import axios from "@/utils/axios";

export function getCategoryList(params) {
    return axios({
        url: '/category/getCategoryList',
        method: 'GET',
        params
    })
}

export function getAllCategoryList() {
    return axios({
        url: "/category/getAllList",
        method: "GET",
    })
}

export function saveCategory(data) {
    return axios({
        url: '/category/save',
        method: 'POST',
        data
    })
}

export function deleteCategoryById(data) {
    return axios({
        url: '/category/delete',
        method: 'POST',
        data
    })
}
